package com.baibei.ebec.welfare.common;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.baibei.ebec.home.R;
import com.baibei.ebec.home.R2;
import com.baibei.module.AppRouter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 我的（邀请）用户
 */

@Route(path = AppRouter.ROUTE_WELFARE_MYUSER)
public class WelfareMyuserActivity extends AppCompatActivity {

    @BindView(R2.id.iv_back)
    ImageView ivBack;
    @BindView(R2.id.iv_wel_avatar)
    ImageView ivWelAvatar;
    @BindView(R2.id.tv_level)
    TextView tvLevel;
    @BindView(R2.id.tv_wel_username)
    TextView tvWelUsername;
    @BindView(R2.id.tv_invi_num)
    TextView tvInviNum;
    @BindView(R2.id.tv_buy)
    TextView tvBuy;
    @BindView(R2.id.tv_bonus)
    TextView tvBonus;
    @BindView(R2.id.tv_rank)
    TextView tvRank;
    @BindView(R2.id.rv)
    RecyclerView rv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welfare_myuser);
        ButterKnife.bind(this);
    }

    @OnClick({R2.id.iv_back, R2.id.tv_buy, R2.id.tv_bonus, R2.id.tv_rank})
    public void onViewClicked(View view) {
        if (view.getId() == R.id.iv_back){
            finish();
        } else if (view.getId() == R.id.tv_buy){
            Intent intent = new Intent(WelfareMyuserActivity.this,WelfareCustomerBuyActivity.class);
            startActivity(intent);
        } else if (view.getId() == R.id.tv_bonus){
            Intent intent = new Intent(WelfareMyuserActivity.this,WefareMyBounsActivity.class);
            startActivity(intent);
        } else if (view.getId() == R.id.tv_rank){

        }
    }
}
